using System.ComponentModel;
using System.Windows.Forms;

namespace facebook.desktop
{
	[ToolboxItem(false)]
	public partial class BaseControl : UserControl
	{
		public BaseControl()
		{
			InitializeComponent();

			SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true);
		}

		protected bool IsDesignTime()
		{
			return (Site != null && Site.DesignMode);
		}
	}
}